#include <cstdio>
#include <cstring>
int a[1000], n, i, p[3] , t=0, z;
bool x[1000];
int main(){
	//freopen("in.txt", "r", stdin);freopen("out.txt", "w", stdout);
	scanf("%d", &n);
	
	for(i=0;i<n;i++){
		scanf("%d", &a[i]);
	}
	
	for(t=0;t<4;t++){
		i=0;
		while(a[i]&&i<n)i++;
		z=a[i];
		for(;i<n;i++){
			if(z==a[i]){
				x[i]=1;
				p[t]++;
			}
		}
	}
	return 0;
}
